<?php

class Admin_NewsitemController extends Zend_Controller_Action{
    
    private $_params;
	private $_auth;
	private $_acl;
    public function init(){
        $this->_params      = $this->_request->getParams();                
        $this->_acl         = new My_Acl();
        $this->view->acl    = $this->_acl;
                 
        $this->_auth        = $this->_acl->checkAllowed();                
        $this->view->auth   = $this->_auth;

//        $config = new Zend_Config_Ini(CONFIG_PATH . '/application.ini', APPLICATION_ENV);               
//        $layout = Zend_Layout::getMvcInstance();
//        $layout->disableLayout();        
    }      
    public function indexAction(){                
        $modelNewsItem=new Admin_Model_Newsitem();        
        $newsItemList=$modelNewsItem->getAllData();        
        $this->view->newsItemList=$newsItemList;                        
    }   
}



